package vo;

import java.io.Serializable;

import po.BookPO;

public class BookVO implements Serializable {

	private static final long serialVersionUID = -9161088183071018099L;

	private BookPO bookPO;

	public BookVO() {
		super();
	}

	public BookVO(String name, String author, String press, String description,
			String isbn, int publishingYear, int catalogId, double price,
			double discount) {
		this.bookPO = new BookPO(0, name, description, isbn, author, press,
				publishingYear, catalogId, price, discount);
	}

	public BookVO(BookPO bookPO) {
		this.bookPO = bookPO;
	}

	public BookPO getBookPO() {
		return bookPO;
	}

	public String toString() {
		return bookPO.toString();
	}

	public int getID() {
		return bookPO.getId();
	}

	public String getName() {
		return this.bookPO.getName();
	}

	public String getDescription() {
		return this.bookPO.getDescription();
	}

	public String getIsbn() {
		return this.bookPO.getIsbn();
	}

	public String getAuthor() {
		return this.bookPO.getAuthor();
	}

	public String getPress() {
		return this.bookPO.getPress();
	}

	public int getPublishingYear() {
		return this.bookPO.getPublishingYear();
	}

	public double getPrice() {
		return this.bookPO.getPrice();
	}

	public double getDiscount() {
		return this.bookPO.getDiscount();
	}

	public int getCatalogID() {
		return this.bookPO.getCatalogID();
	}

}
